styleproperties: Put gtk_style_property_lookup() in private header
authorBenjamin Otte <otte@redhat.com>
Thu, 19 May 2011 12:00:14 +0000 (14:00 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 21 May 2011 20:49:43 +0000 (22:49 +0200)
gtk/gtkstyleproperties.c
gtk/gtkstylepropertiesprivate.h

index e32c6900ddf91378a51064dc0f85ac831b964419..fc65f9e04c15219310fa9fabc5b2eb169395598a 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "config.h"
 
-#include "gtkstyleproperties.h"
+#include "gtkstylepropertiesprivate.h"
 
 #include <stdlib.h>
 #include <gobject/gvaluecollector.h>
 
 typedef struct GtkStylePropertiesPrivate GtkStylePropertiesPrivate;
 typedef struct PropertyData PropertyData;
-typedef struct _GtkStyleProperty GtkStyleProperty;
 typedef struct ValueData ValueData;
 
-struct _GtkStyleProperty
-{
-  GParamSpec *pspec;
-  GtkStylePropertyParser parse_func;
-};
-
 struct ValueData
 {
   GtkStateFlags state;
@@ -403,7 +396,7 @@ gtk_style_property_init (void)
 }
 
 const GtkStyleProperty *
-gtk_style_property_lookup (const char *name)
+_gtk_style_property_lookup (const char *name)
 {
   gtk_style_property_init ();
 
@@ -435,7 +428,7 @@ gtk_style_properties_register_property (GtkStylePropertyParser  parse_func,
 
   gtk_style_property_init ();
 
-  existing = gtk_style_property_lookup (pspec->name);
+  existing = _gtk_style_property_lookup (pspec->name);
   if (existing != NULL)
     {
       g_warning ("Property \"%s\" was already registered with type %s",
@@ -474,7 +467,7 @@ gtk_style_properties_lookup_property (const gchar             *property_name,
 
   g_return_val_if_fail (property_name != NULL, FALSE);
 
-  node = gtk_style_property_lookup (property_name);
+  node = _gtk_style_property_lookup (property_name);
 
   if (node)
     {
@@ -694,7 +687,7 @@ gtk_style_properties_set_property (GtkStyleProperties *props,
   g_return_if_fail (property != NULL);
   g_return_if_fail (value != NULL);
 
-  node = gtk_style_property_lookup (property);
+  node = _gtk_style_property_lookup (property);
 
   if (!node)
     {
@@ -738,7 +731,7 @@ gtk_style_properties_set_valist (GtkStyleProperties *props,
       gchar *error = NULL;
       GValue *val;
 
-      node = gtk_style_property_lookup (property_name);
+      node = _gtk_style_property_lookup (property_name);
 
       if (!node)
         {
@@ -947,7 +940,7 @@ _gtk_style_properties_peek_property (GtkStyleProperties *props,
   g_return_val_if_fail (GTK_IS_STYLE_PROPERTIES (props), NULL);
   g_return_val_if_fail (prop_name != NULL, NULL);
 
-  node = gtk_style_property_lookup (prop_name);
+  node = _gtk_style_property_lookup (prop_name);
 
   if (!node)
     {
@@ -999,7 +992,7 @@ gtk_style_properties_get_property (GtkStyleProperties *props,
   g_return_val_if_fail (property != NULL, FALSE);
   g_return_val_if_fail (value != NULL, FALSE);
 
-  node = gtk_style_property_lookup (property);
+  node = _gtk_style_property_lookup (property);
 
   if (!node)
     {
@@ -1061,7 +1054,7 @@ gtk_style_properties_get_valist (GtkStyleProperties *props,
       gchar *error = NULL;
       GValue *val = NULL;
 
-      node = gtk_style_property_lookup (property_name);
+      node = _gtk_style_property_lookup (property_name);
 
       if (!node)
         {
@@ -1152,7 +1145,7 @@ gtk_style_properties_unset_property (GtkStyleProperties *props,
   g_return_if_fail (GTK_IS_STYLE_PROPERTIES (props));
   g_return_if_fail (property != NULL);
 
-  node = gtk_style_property_lookup (property);
+  node = _gtk_style_property_lookup (property);
 
   if (!node)
     {
index f4cea2d44ba26ac20a870b114edc154cf3ba792c..3b90e6c85d87002e7593ad877a4105826e9dcde3 100644 (file)
 
 G_BEGIN_DECLS
 
+typedef struct _GtkStyleProperty GtkStyleProperty;
+
+struct _GtkStyleProperty
+{
+  GParamSpec *pspec;
+  GtkStylePropertyParser parse_func;
+};
+
+const GtkStyleProperty * _gtk_style_property_lookup        (const char         *name);
+
 const GValue * _gtk_style_properties_peek_property         (GtkStyleProperties *props,
                                                             const gchar        *prop_name,
                                                             GtkStateFlags       state);